<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2020/12/4
  Time: 14:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<% List<String> list=new ArrayList();
list.add("a");
list.add("b");
list.add("c");
session.setAttribute("list",list);
for (String s:list){

}
%>
<c: forEach itms="${list}" var="1">
<c:out value="${1}"></c:out>
</c: forEach>
</body>
</html>
